package com.mrjy.maintain.bo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mrjy.common.entity.LabelType;
import com.mrjy.maintain.dao.ILabelTypeDao;

@Service("labelTypeBo")
public class LabelTypeBo implements ILabelTypeBo{

	@Resource
	private ILabelTypeDao labelTypeDao;
	
	@Override
	public List<LabelType> getLabelTypeList() {
		List<LabelType> labelTypes = labelTypeDao.getLabelTypeList();
		for (LabelType l : labelTypes) {
			l.setText(l.getTypeName());
		}
		return labelTypes;
	}

}
